/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Body Surface Route</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A17027 (C-0-T14581-A17021-A17027-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getBodySurfaceRoute()
 * @model extendedMetaData="name='BodySurfaceRoute'"
 * @generated
 */
public enum BodySurfaceRoute implements Enumerator {
	/**
	 * The '<em><b>ELECTOSMOS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ELECTOSMOS_VALUE
	 * @generated
	 * @ordered
	 */
	ELECTOSMOS(0, "ELECTOSMOS", "ELECTOSMOS"),

	/**
	 * The '<em><b>SOAK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SOAK_VALUE
	 * @generated
	 * @ordered
	 */
	SOAK(1, "SOAK", "SOAK"),

	/**
	 * The '<em><b>TOPICAL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TOPICAL_VALUE
	 * @generated
	 * @ordered
	 */
	TOPICAL(2, "TOPICAL", "TOPICAL"),

	/**
	 * The '<em><b>IONTO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IONTO_VALUE
	 * @generated
	 * @ordered
	 */
	IONTO(3, "IONTO", "IONTO"),

	/**
	 * The '<em><b>DRESS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DRESS_VALUE
	 * @generated
	 * @ordered
	 */
	DRESS(4, "DRESS", "DRESS"),

	/**
	 * The '<em><b>SWAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SWAB_VALUE
	 * @generated
	 * @ordered
	 */
	SWAB(5, "SWAB", "SWAB");

	/**
	 * The '<em><b>ELECTOSMOS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ELECTOSMOS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ELECTOSMOS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ELECTOSMOS_VALUE = 0;

	/**
	 * The '<em><b>SOAK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SOAK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SOAK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SOAK_VALUE = 1;

	/**
	 * The '<em><b>TOPICAL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TOPICAL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TOPICAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TOPICAL_VALUE = 2;

	/**
	 * The '<em><b>IONTO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>IONTO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IONTO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int IONTO_VALUE = 3;

	/**
	 * The '<em><b>DRESS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DRESS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DRESS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DRESS_VALUE = 4;

	/**
	 * The '<em><b>SWAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SWAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SWAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SWAB_VALUE = 5;

	/**
	 * An array of all the '<em><b>Body Surface Route</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final BodySurfaceRoute[] VALUES_ARRAY =
		new BodySurfaceRoute[] {
			ELECTOSMOS,
			SOAK,
			TOPICAL,
			IONTO,
			DRESS,
			SWAB,
		};

	/**
	 * A public read-only list of all the '<em><b>Body Surface Route</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<BodySurfaceRoute> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Body Surface Route</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BodySurfaceRoute get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			BodySurfaceRoute result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Body Surface Route</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BodySurfaceRoute getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			BodySurfaceRoute result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Body Surface Route</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BodySurfaceRoute get(int value) {
		switch (value) {
			case ELECTOSMOS_VALUE: return ELECTOSMOS;
			case SOAK_VALUE: return SOAK;
			case TOPICAL_VALUE: return TOPICAL;
			case IONTO_VALUE: return IONTO;
			case DRESS_VALUE: return DRESS;
			case SWAB_VALUE: return SWAB;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private BodySurfaceRoute(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //BodySurfaceRoute
